package com.miao.websecurity.controller;

import com.auth0.jwt.exceptions.JWTDecodeException;
import com.miao.common.entity.R;
import com.miao.common.exceptionhandler.MyException;
import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletResponse;

/**
 * @author MiaoWenqing
 * @description: TODO
 * @date 2021/1/17 11:34
 */
@ControllerAdvice
public class MyExceptionController {

//    @ExceptionHandler(Exception.class)
//    public R exceptionTest1( Exception e){
//        System.out.println(e.getMessage());
//       return  R.error(e.getMessage());
//    }
}

